package main

import (
	"gitee.com/zhangycsz/glin"
)

func main() {
	g := glin.New()
	rt := &glin.RendererTemplate{}
	rt.SetViewPath("../views/")
	rt.LoadTemplate()

	g.Renderer = rt

	g.GET("/html", func(c glin.Context) error {
		c.Render(200, "/index/test", nil)
		return nil
	})

	g.Start("0.0.0.0:8085")
}
